package com.niit.mall.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.niit.mall.common.domain.dto.PageDTO;
import com.niit.mall.user.domain.dto.UserInfoDTO;
import com.niit.mall.user.domain.dto.UserLoginDTO;
import com.niit.mall.user.domain.po.User;
import com.niit.mall.user.domain.query.UserQuery;
import com.niit.mall.user.domain.vo.UserLoginVO;
import com.niit.mall.user.domain.vo.UserVO;


import java.util.List;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.admin.service.serviceImpl
 * @Author: ChuXuan
 * @CreateTime: 2025-05-21  21:05
 * @Description: 用户服务接口
 * @Version: 1.0
 */

public interface IUserService extends IService<User> {
	

//	String deductionUserBalance(Long id, Integer money);
	
//	List<User> queryUsers(String username, Integer status, Integer minBalance, Integer maxBalance);
	
	PageDTO<UserVO> queryUserPage(UserQuery query);
	
	UserLoginVO login(UserLoginDTO loginDTO);
	
	boolean checkRepeat(String keyword);
	
	UserVO queryUserAndAddressById(Long id);
	
	void updateUserInfo(Long userId, UserInfoDTO userInfoDTO);
	
	void logout();
	
}
